package com.heima.admin.controller.v1;

import com.heima.feign.user.IUserClient;
import com.heima.model.apuser.dtos.AuthDto;
import com.heima.model.apuser.pojos.ApUserRealname;
import com.heima.model.common.dtos.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author rookie001
 * @creat 2023-06-20-14:34
 */
@RestController
@RequestMapping("/api/v1/auth")
@Slf4j
public class AdUserController {
    @Autowired
    private IUserClient iUserClient;

    @PostMapping("list")
    public ResponseResult list(@RequestBody AuthDto dto) {
        return iUserClient.list(dto);
    }

    //通过审核
    @PostMapping("authPass")
    public ResponseResult authPass(@RequestBody AuthDto dto) {
        return iUserClient.authPass(dto);
    }

}
